package com.hp.appfw.data.mode.mygen;

import java.util.ArrayList;
import java.util.List;

public class BaseUserOrgResViewExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public BaseUserOrgResViewExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andOrgIdIsNull() {
            addCriterion("ORG_ID is null");
            return (Criteria) this;
        }

        public Criteria andOrgIdIsNotNull() {
            addCriterion("ORG_ID is not null");
            return (Criteria) this;
        }

        public Criteria andOrgIdEqualTo(String value) {
            addCriterion("ORG_ID =", value, "orgId");
            return (Criteria) this;
        }

        public Criteria andOrgIdNotEqualTo(String value) {
            addCriterion("ORG_ID <>", value, "orgId");
            return (Criteria) this;
        }

        public Criteria andOrgIdGreaterThan(String value) {
            addCriterion("ORG_ID >", value, "orgId");
            return (Criteria) this;
        }

        public Criteria andOrgIdGreaterThanOrEqualTo(String value) {
            addCriterion("ORG_ID >=", value, "orgId");
            return (Criteria) this;
        }

        public Criteria andOrgIdLessThan(String value) {
            addCriterion("ORG_ID <", value, "orgId");
            return (Criteria) this;
        }

        public Criteria andOrgIdLessThanOrEqualTo(String value) {
            addCriterion("ORG_ID <=", value, "orgId");
            return (Criteria) this;
        }

        public Criteria andOrgIdLike(String value) {
            addCriterion("ORG_ID like", value, "orgId");
            return (Criteria) this;
        }

        public Criteria andOrgIdNotLike(String value) {
            addCriterion("ORG_ID not like", value, "orgId");
            return (Criteria) this;
        }

        public Criteria andOrgIdIn(List<String> values) {
            addCriterion("ORG_ID in", values, "orgId");
            return (Criteria) this;
        }

        public Criteria andOrgIdNotIn(List<String> values) {
            addCriterion("ORG_ID not in", values, "orgId");
            return (Criteria) this;
        }

        public Criteria andOrgIdBetween(String value1, String value2) {
            addCriterion("ORG_ID between", value1, value2, "orgId");
            return (Criteria) this;
        }

        public Criteria andOrgIdNotBetween(String value1, String value2) {
            addCriterion("ORG_ID not between", value1, value2, "orgId");
            return (Criteria) this;
        }

        public Criteria andResourceIdIsNull() {
            addCriterion("RESOURCE_ID is null");
            return (Criteria) this;
        }

        public Criteria andResourceIdIsNotNull() {
            addCriterion("RESOURCE_ID is not null");
            return (Criteria) this;
        }

        public Criteria andResourceIdEqualTo(String value) {
            addCriterion("RESOURCE_ID =", value, "resourceId");
            return (Criteria) this;
        }

        public Criteria andResourceIdNotEqualTo(String value) {
            addCriterion("RESOURCE_ID <>", value, "resourceId");
            return (Criteria) this;
        }

        public Criteria andResourceIdGreaterThan(String value) {
            addCriterion("RESOURCE_ID >", value, "resourceId");
            return (Criteria) this;
        }

        public Criteria andResourceIdGreaterThanOrEqualTo(String value) {
            addCriterion("RESOURCE_ID >=", value, "resourceId");
            return (Criteria) this;
        }

        public Criteria andResourceIdLessThan(String value) {
            addCriterion("RESOURCE_ID <", value, "resourceId");
            return (Criteria) this;
        }

        public Criteria andResourceIdLessThanOrEqualTo(String value) {
            addCriterion("RESOURCE_ID <=", value, "resourceId");
            return (Criteria) this;
        }

        public Criteria andResourceIdLike(String value) {
            addCriterion("RESOURCE_ID like", value, "resourceId");
            return (Criteria) this;
        }

        public Criteria andResourceIdNotLike(String value) {
            addCriterion("RESOURCE_ID not like", value, "resourceId");
            return (Criteria) this;
        }

        public Criteria andResourceIdIn(List<String> values) {
            addCriterion("RESOURCE_ID in", values, "resourceId");
            return (Criteria) this;
        }

        public Criteria andResourceIdNotIn(List<String> values) {
            addCriterion("RESOURCE_ID not in", values, "resourceId");
            return (Criteria) this;
        }

        public Criteria andResourceIdBetween(String value1, String value2) {
            addCriterion("RESOURCE_ID between", value1, value2, "resourceId");
            return (Criteria) this;
        }

        public Criteria andResourceIdNotBetween(String value1, String value2) {
            addCriterion("RESOURCE_ID not between", value1, value2, "resourceId");
            return (Criteria) this;
        }

        public Criteria andReadRightIsNull() {
            addCriterion("READ_RIGHT is null");
            return (Criteria) this;
        }

        public Criteria andReadRightIsNotNull() {
            addCriterion("READ_RIGHT is not null");
            return (Criteria) this;
        }

        public Criteria andReadRightEqualTo(String value) {
            addCriterion("READ_RIGHT =", value, "readRight");
            return (Criteria) this;
        }

        public Criteria andReadRightNotEqualTo(String value) {
            addCriterion("READ_RIGHT <>", value, "readRight");
            return (Criteria) this;
        }

        public Criteria andReadRightGreaterThan(String value) {
            addCriterion("READ_RIGHT >", value, "readRight");
            return (Criteria) this;
        }

        public Criteria andReadRightGreaterThanOrEqualTo(String value) {
            addCriterion("READ_RIGHT >=", value, "readRight");
            return (Criteria) this;
        }

        public Criteria andReadRightLessThan(String value) {
            addCriterion("READ_RIGHT <", value, "readRight");
            return (Criteria) this;
        }

        public Criteria andReadRightLessThanOrEqualTo(String value) {
            addCriterion("READ_RIGHT <=", value, "readRight");
            return (Criteria) this;
        }

        public Criteria andReadRightLike(String value) {
            addCriterion("READ_RIGHT like", value, "readRight");
            return (Criteria) this;
        }

        public Criteria andReadRightNotLike(String value) {
            addCriterion("READ_RIGHT not like", value, "readRight");
            return (Criteria) this;
        }

        public Criteria andReadRightIn(List<String> values) {
            addCriterion("READ_RIGHT in", values, "readRight");
            return (Criteria) this;
        }

        public Criteria andReadRightNotIn(List<String> values) {
            addCriterion("READ_RIGHT not in", values, "readRight");
            return (Criteria) this;
        }

        public Criteria andReadRightBetween(String value1, String value2) {
            addCriterion("READ_RIGHT between", value1, value2, "readRight");
            return (Criteria) this;
        }

        public Criteria andReadRightNotBetween(String value1, String value2) {
            addCriterion("READ_RIGHT not between", value1, value2, "readRight");
            return (Criteria) this;
        }

        public Criteria andCreateRightIsNull() {
            addCriterion("CREATE_RIGHT is null");
            return (Criteria) this;
        }

        public Criteria andCreateRightIsNotNull() {
            addCriterion("CREATE_RIGHT is not null");
            return (Criteria) this;
        }

        public Criteria andCreateRightEqualTo(String value) {
            addCriterion("CREATE_RIGHT =", value, "createRight");
            return (Criteria) this;
        }

        public Criteria andCreateRightNotEqualTo(String value) {
            addCriterion("CREATE_RIGHT <>", value, "createRight");
            return (Criteria) this;
        }

        public Criteria andCreateRightGreaterThan(String value) {
            addCriterion("CREATE_RIGHT >", value, "createRight");
            return (Criteria) this;
        }

        public Criteria andCreateRightGreaterThanOrEqualTo(String value) {
            addCriterion("CREATE_RIGHT >=", value, "createRight");
            return (Criteria) this;
        }

        public Criteria andCreateRightLessThan(String value) {
            addCriterion("CREATE_RIGHT <", value, "createRight");
            return (Criteria) this;
        }

        public Criteria andCreateRightLessThanOrEqualTo(String value) {
            addCriterion("CREATE_RIGHT <=", value, "createRight");
            return (Criteria) this;
        }

        public Criteria andCreateRightLike(String value) {
            addCriterion("CREATE_RIGHT like", value, "createRight");
            return (Criteria) this;
        }

        public Criteria andCreateRightNotLike(String value) {
            addCriterion("CREATE_RIGHT not like", value, "createRight");
            return (Criteria) this;
        }

        public Criteria andCreateRightIn(List<String> values) {
            addCriterion("CREATE_RIGHT in", values, "createRight");
            return (Criteria) this;
        }

        public Criteria andCreateRightNotIn(List<String> values) {
            addCriterion("CREATE_RIGHT not in", values, "createRight");
            return (Criteria) this;
        }

        public Criteria andCreateRightBetween(String value1, String value2) {
            addCriterion("CREATE_RIGHT between", value1, value2, "createRight");
            return (Criteria) this;
        }

        public Criteria andCreateRightNotBetween(String value1, String value2) {
            addCriterion("CREATE_RIGHT not between", value1, value2, "createRight");
            return (Criteria) this;
        }

        public Criteria andUpdateRightIsNull() {
            addCriterion("UPDATE_RIGHT is null");
            return (Criteria) this;
        }

        public Criteria andUpdateRightIsNotNull() {
            addCriterion("UPDATE_RIGHT is not null");
            return (Criteria) this;
        }

        public Criteria andUpdateRightEqualTo(String value) {
            addCriterion("UPDATE_RIGHT =", value, "updateRight");
            return (Criteria) this;
        }

        public Criteria andUpdateRightNotEqualTo(String value) {
            addCriterion("UPDATE_RIGHT <>", value, "updateRight");
            return (Criteria) this;
        }

        public Criteria andUpdateRightGreaterThan(String value) {
            addCriterion("UPDATE_RIGHT >", value, "updateRight");
            return (Criteria) this;
        }

        public Criteria andUpdateRightGreaterThanOrEqualTo(String value) {
            addCriterion("UPDATE_RIGHT >=", value, "updateRight");
            return (Criteria) this;
        }

        public Criteria andUpdateRightLessThan(String value) {
            addCriterion("UPDATE_RIGHT <", value, "updateRight");
            return (Criteria) this;
        }

        public Criteria andUpdateRightLessThanOrEqualTo(String value) {
            addCriterion("UPDATE_RIGHT <=", value, "updateRight");
            return (Criteria) this;
        }

        public Criteria andUpdateRightLike(String value) {
            addCriterion("UPDATE_RIGHT like", value, "updateRight");
            return (Criteria) this;
        }

        public Criteria andUpdateRightNotLike(String value) {
            addCriterion("UPDATE_RIGHT not like", value, "updateRight");
            return (Criteria) this;
        }

        public Criteria andUpdateRightIn(List<String> values) {
            addCriterion("UPDATE_RIGHT in", values, "updateRight");
            return (Criteria) this;
        }

        public Criteria andUpdateRightNotIn(List<String> values) {
            addCriterion("UPDATE_RIGHT not in", values, "updateRight");
            return (Criteria) this;
        }

        public Criteria andUpdateRightBetween(String value1, String value2) {
            addCriterion("UPDATE_RIGHT between", value1, value2, "updateRight");
            return (Criteria) this;
        }

        public Criteria andUpdateRightNotBetween(String value1, String value2) {
            addCriterion("UPDATE_RIGHT not between", value1, value2, "updateRight");
            return (Criteria) this;
        }

        public Criteria andDeleteRightIsNull() {
            addCriterion("DELETE_RIGHT is null");
            return (Criteria) this;
        }

        public Criteria andDeleteRightIsNotNull() {
            addCriterion("DELETE_RIGHT is not null");
            return (Criteria) this;
        }

        public Criteria andDeleteRightEqualTo(String value) {
            addCriterion("DELETE_RIGHT =", value, "deleteRight");
            return (Criteria) this;
        }

        public Criteria andDeleteRightNotEqualTo(String value) {
            addCriterion("DELETE_RIGHT <>", value, "deleteRight");
            return (Criteria) this;
        }

        public Criteria andDeleteRightGreaterThan(String value) {
            addCriterion("DELETE_RIGHT >", value, "deleteRight");
            return (Criteria) this;
        }

        public Criteria andDeleteRightGreaterThanOrEqualTo(String value) {
            addCriterion("DELETE_RIGHT >=", value, "deleteRight");
            return (Criteria) this;
        }

        public Criteria andDeleteRightLessThan(String value) {
            addCriterion("DELETE_RIGHT <", value, "deleteRight");
            return (Criteria) this;
        }

        public Criteria andDeleteRightLessThanOrEqualTo(String value) {
            addCriterion("DELETE_RIGHT <=", value, "deleteRight");
            return (Criteria) this;
        }

        public Criteria andDeleteRightLike(String value) {
            addCriterion("DELETE_RIGHT like", value, "deleteRight");
            return (Criteria) this;
        }

        public Criteria andDeleteRightNotLike(String value) {
            addCriterion("DELETE_RIGHT not like", value, "deleteRight");
            return (Criteria) this;
        }

        public Criteria andDeleteRightIn(List<String> values) {
            addCriterion("DELETE_RIGHT in", values, "deleteRight");
            return (Criteria) this;
        }

        public Criteria andDeleteRightNotIn(List<String> values) {
            addCriterion("DELETE_RIGHT not in", values, "deleteRight");
            return (Criteria) this;
        }

        public Criteria andDeleteRightBetween(String value1, String value2) {
            addCriterion("DELETE_RIGHT between", value1, value2, "deleteRight");
            return (Criteria) this;
        }

        public Criteria andDeleteRightNotBetween(String value1, String value2) {
            addCriterion("DELETE_RIGHT not between", value1, value2, "deleteRight");
            return (Criteria) this;
        }

        public Criteria andUserIdIsNull() {
            addCriterion("USER_ID is null");
            return (Criteria) this;
        }

        public Criteria andUserIdIsNotNull() {
            addCriterion("USER_ID is not null");
            return (Criteria) this;
        }

        public Criteria andUserIdEqualTo(String value) {
            addCriterion("USER_ID =", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotEqualTo(String value) {
            addCriterion("USER_ID <>", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdGreaterThan(String value) {
            addCriterion("USER_ID >", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdGreaterThanOrEqualTo(String value) {
            addCriterion("USER_ID >=", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdLessThan(String value) {
            addCriterion("USER_ID <", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdLessThanOrEqualTo(String value) {
            addCriterion("USER_ID <=", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdLike(String value) {
            addCriterion("USER_ID like", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotLike(String value) {
            addCriterion("USER_ID not like", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdIn(List<String> values) {
            addCriterion("USER_ID in", values, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotIn(List<String> values) {
            addCriterion("USER_ID not in", values, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdBetween(String value1, String value2) {
            addCriterion("USER_ID between", value1, value2, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotBetween(String value1, String value2) {
            addCriterion("USER_ID not between", value1, value2, "userId");
            return (Criteria) this;
        }

        public Criteria andEntIdIsNull() {
            addCriterion("ENT_ID is null");
            return (Criteria) this;
        }

        public Criteria andEntIdIsNotNull() {
            addCriterion("ENT_ID is not null");
            return (Criteria) this;
        }

        public Criteria andEntIdEqualTo(String value) {
            addCriterion("ENT_ID =", value, "entId");
            return (Criteria) this;
        }

        public Criteria andEntIdNotEqualTo(String value) {
            addCriterion("ENT_ID <>", value, "entId");
            return (Criteria) this;
        }

        public Criteria andEntIdGreaterThan(String value) {
            addCriterion("ENT_ID >", value, "entId");
            return (Criteria) this;
        }

        public Criteria andEntIdGreaterThanOrEqualTo(String value) {
            addCriterion("ENT_ID >=", value, "entId");
            return (Criteria) this;
        }

        public Criteria andEntIdLessThan(String value) {
            addCriterion("ENT_ID <", value, "entId");
            return (Criteria) this;
        }

        public Criteria andEntIdLessThanOrEqualTo(String value) {
            addCriterion("ENT_ID <=", value, "entId");
            return (Criteria) this;
        }

        public Criteria andEntIdLike(String value) {
            addCriterion("ENT_ID like", value, "entId");
            return (Criteria) this;
        }

        public Criteria andEntIdNotLike(String value) {
            addCriterion("ENT_ID not like", value, "entId");
            return (Criteria) this;
        }

        public Criteria andEntIdIn(List<String> values) {
            addCriterion("ENT_ID in", values, "entId");
            return (Criteria) this;
        }

        public Criteria andEntIdNotIn(List<String> values) {
            addCriterion("ENT_ID not in", values, "entId");
            return (Criteria) this;
        }

        public Criteria andEntIdBetween(String value1, String value2) {
            addCriterion("ENT_ID between", value1, value2, "entId");
            return (Criteria) this;
        }

        public Criteria andEntIdNotBetween(String value1, String value2) {
            addCriterion("ENT_ID not between", value1, value2, "entId");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}